<?php

/**
 * App
 *
 * @package App
 * @subpackage page
 */
require_once 'App.php';

/**
 * * Faq_Detail_Index
 *
 * <pre>FAQページ
 * </pre>
 *
 * @package     App
 * @subpackage  page
 * @author      $Author: moriwaki $
 * @version     $Id: 2008-09-12 moriwaki $
 */
class Faq_Detail_Index extends App_Page
{

    function onInit($args)
    {
        $params = array();
        $params['mode'] = 'id';
        $params['id'] = $args['id'];
        $resource = new BEAR_Resource('faq');
        $resource->read($params);
        $view['entries'] = $resource->getResult();

        $pager = $resource->getPager();
        // セット
        $this->set('title', 'FAQ');
        $this->set('view', $view);
        $this->set('pager', $pager);
    }
}

new BEAR_Main('Faq_Detail_Index');
